﻿namespace HashFoo.Rest.Server
{
    /// <summary>
    /// Provides membership access.
    /// </summary>
    public interface IMembershipProvider
    {
        /// <summary>
        /// Returns true if the username and password are valid.
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        bool ValidateUser(string userName, string password);

        /// <summary>
        /// The the roles (as strings) that a user belongs to.
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        string[] GetRoles(string userName);
    }
}